<div class="span10">
    <div class="row-fluid">
        <div class="span6">
            <div class="row-fluid">
                <h2>Tambah Simpanan Wajib</h2>
                <?php echo form_open('admin/simpanan_wajib_tambah', 'class="well"') ?>
                <?php foreach ($anggota as $data): ?>
                    <div class="group-option">
                        <label>Nia</label>
                        <input class="input-xlarge"  value="<?php echo $data->nia ?>" name="nia" readonly>
                    </div>
                    <div class="group-option">
                        <label>Nama</label>
                        <input class="input-xlarge"  value="<?php echo $data->nama ?>" name="nama" readonly>
                    </div>
                    <div class="group-option">
                        <label>Jenis Simpanan</label>
                        <input class="input-xlarge"  value="<?php echo $this->uri->segment(3) ?>" name="simpanan" hidden>
                        <input class="input-xlarge"  value="<?php echo $simpanan[0]->jenis_simpanan ?>" readonly>
                    </div>
                    <div class="group-option">
                        <label>Harga</label>
                        <input class="input-xlarge"  value="Rp <?php echo $simpanan[0]->value ?>" readonly>
                    </div>
                    <div class="group-option">
                        <div class="span12">
                            <div class="row-fluid">
                                <div class="span3">
                                    <?php
                                    for ($i = 1; $i <= 6; $i++) {
                                        echo '<label class="checkbox"><input type="checkbox" value="' . $i . '" name="bln[]" ';
                                        foreach ($bayar as $data):
                                            if ($i == $data->bulan) {
                                                echo 'disabled';
                                            }
                                        endforeach;
                                        echo '/>';
                                        switch ($i) {
                                            case $i == 1:
                                                echo 'Januari';
                                                break;
                                            case $i == 2:
                                                echo 'Februari';
                                                break;
                                            case $i == 3:
                                                echo 'Maret';
                                                break;
                                            case $i == 4:
                                                echo 'April';
                                                break;
                                            case $i == 5:
                                                echo 'Mei';
                                                break;
                                            case $i == 6:
                                                echo 'Juni';
                                                break;
                                            default:
                                                break;
                                        }
                                        echo '</label>';
                                    }
                                    ?>
                                </div>
                                <div class="span3">
                                    <?php
                                    for ($i = 7; $i <= 12; $i++) {
                                        echo '<label class="checkbox"><input type="checkbox" value="' . $i . '" name="bln[]" ';
                                        foreach ($bayar as $data):
                                            if ($i == $data->bulan) {
                                                echo 'disabled';
                                            }
                                        endforeach;
                                        echo '/>';
                                        switch ($i) {
                                            case $i == 7:
                                                echo 'Juli';
                                                break;
                                            case $i == 8:
                                                echo 'Agustus';
                                                break;
                                            case $i == 9:
                                                echo 'September';
                                                break;
                                            case $i == 10:
                                                echo 'Oktober';
                                                break;
                                            case $i == 11:
                                                echo 'November';
                                                break;
                                            case $i == 12:
                                                echo 'Desember';
                                                break;
                                            default:
                                                break;
                                        }
                                        echo '</label>';
                                    }
                                    ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="group-option">
                        <button class="btn btn-primary"><i class="icon-plus icon-white"></i> Tambah</button>
                    </div>
                <?php endforeach; ?>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</div>
